using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 技能数据
/// </summary>
[CreateAssetMenu(menuName = "创建ScriptableObject/SkillData/Base")]
public class SkillData : ScriptableObject
{
    public AttackType Type;
    public int Damage;
    public float Interval;
    public float Duration;
    public float Range = 1.0f; // 技能范围
    public BulletData BulletData;

    [Header("瞬时效果和Buff")]
    public List<InstantEffectData> Effects;

    [Header("技能范围指示器")]
    public IndicatorData IndicatorData;

    [Header("技能特效")]
    public GameObject Prefab;

    [Header("技能特效偏移位置")]
    public Vector3 PrefabOffset;

    [Header("攻击目标设置")]
    [Tooltip("是否需要查找攻击目标。false表示不需要目标（如向日葵生产阳光、火爆辣椒等）")]
    public bool RequiresTarget = true; // 默认为true，需要目标
}